<?php

namespace app\api\controller\ai;

use app\common\controller\BaseController;
use hg\apidoc\annotation as Apidoc;
use \app\common\service\ai\PromoterService;

/**
 * @Apidoc\Title("分佣管理")
 * @Apidoc\Group("ai")
 * @Apidoc\Sort("300")
 */
class Promoter extends BaseController {
    
    /**
     * @Apidoc\Title("列表")
     * @Apidoc\Param("keyword", type="string", require=false, desc="关键字搜索(订单号)")
     * @Apidoc\Param(ref="app\common\model\ai\PromoterCommissionModel", field="create_time")
     * @Apidoc\Returned("list", type="array", desc="列表", children={
     * @Apidoc\Returned(ref="app\common\model\ai\PromoterCommissionModel", withoutField="sdc"),
     * })
     */
    public function getList() {
        $list = PromoterService::getCommissionList($this->data);
        return success($list);
    }

}
